package com.cy.service.impl;

import com.cy.entity.Statistics;
import com.cy.mapper.StatisticsMapper;
import com.cy.service.IStatisticsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Aleven
 * @since 2024-12-21
 */
@Service
public class StatisticsServiceImpl extends ServiceImpl<StatisticsMapper, Statistics> implements IStatisticsService {
    @Autowired
    private StatisticsMapper statisticsMapper;
    @Override
    public int updateEnrollmentCount(Integer CourseID) {
        return statisticsMapper.updateEnrollmentCount(CourseID);
    }

}
